
using System;
using Sce.PlayStation.Core;

namespace Nyanimals
{
	public class CPlayerCarryIdleState : CPlayerBaseState
	{
		public CPlayerCarryIdleState(string szName, CPlayer pl) : base(szName, pl)
		{
		}

		public override void Enter ()
		{
			player.ChangeAnimation("carryidle");
			// Console.WriteLine("PlayerCarryIdleState::Enter()");
		}

		public override void Exit ()
		{
			// Console.WriteLine("PlayerCarryIdleState::Exit()");
		}

		public override void Input ()
		{		
			if(CInput.Instance.ButtonPressed(Sce.PlayStation.Core.Input.GamePadButtons.Circle))
			{
				owningMachine.ChangeState("pickup");
			}
		}

		public override void Update (float deltaTime)
		{
			if(player.LeftStick != Vector2.Zero)
			{
				owningMachine.ChangeState("carrywalk");
			}
		}
	}
}

